import java.util.LinkedList;

/**
 * 
 */

/**
 * @author Martin
 * This class describes a recipe for food, drinks, bakery and alike.
 */
public class Recipe {

	public String name;
	public LinkedList<Ingredient> ingredients;
	public String instructions;
	//picture class to be inserted here
	public int tastyness;
	public int cookingTime;
	public LinkedList<Ingredient> missingIngredients;
	
	public Recipe(String name) {
		this.name = name;
		this.ingredients = new LinkedList<Ingredient>();
		this.instructions = "Instructions missing";
		this.tastyness = 0;
		this.cookingTime = 0;
		this.missingIngredients = new LinkedList<Ingredient>();
		System.out.println("New generic recipe '" + name + "' has been created");
	}
	
	public Recipe(String name, String instructions, int tastyness, int cookingTime) {
		this.name = name;
		this.ingredients = new LinkedList<Ingredient>();
		this.instructions = instructions;
		this.tastyness = tastyness;
		this.cookingTime = cookingTime;
		this.missingIngredients = new LinkedList<Ingredient>();
		System.out.println("New recipe '" + name + "' has been created");
	}
	
//	public LinkedList<Ingredient> calculateMissing(LinkedList<Ingredient> existingIngredients) {
//		for (Ingredient i : existingIngredients) {
//            for(Ingredient j : ingredients) {
//            	if()
//            }
//        }
//		
//		return missingIngredients;
//	}
	
}
